package com.cxy.jvm.ch01;

/**
 * @author 
 */
public class demo {
    public static void main(String[] args) {
        String b="享学";
        String a=b+"课堂";
        String d=b+"课堂";
        //System.out.println(a==d.intern());
        d.intern();

        System.out.println(a.intern()==a);
        //System.out.println(a.intern()==d.intern());

    }
}
